package cn.jarlen.jwt.tools;

import android.app.Application;

import com.xdja.log.LogModule;
import com.xdja.log.config.Config;

import cn.jarlen.jwt.tools.antivirus.CVEHelper;

/**
 * @author jarlen
 * Create by 2023/6/12 17:38
 */
public class JwtToolApplication extends Application {

    private static Application application;
    @Override
    public void onCreate() {
        super.onCreate();
        this.application = this;
        LogModule.systemLogIsEnable(this);
        Config.Builder builder = new Config.Builder(this);
        builder.enableCollectCrash(true);
        builder.setAllowedWriteFile(true);
        builder.setRootDir("JwtTool");
        LogModule.individualBuilder(builder);
        CVEHelper.copyAssetDatabase2PriPath(this);
    }

    public static Application getApplication() {
        return application;
    }
}
